Part Number Hot Search : 
C1002 AD8531AR MS4208L6 2SC5097 A1695 BC846B 25A12 MJD31T4G
Product Description
Full Text Search
 

To Download ST16C552IJ68 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  exar corporation, 48720 kato road, fremont, ca 94538 (510) 668-7000 fax (510) 668-7017 st16c552 st16c552a plcc package dual uart with 16-byte fifo and parallel printer port december 2003 rev. 3.40 description the st16c552/st16c552a (552/552a) is a dual universal asynchronous receiver and transmitter (uart) withan added bi-directional parallel port that is directly compatible with a centronics type printer. the parallel port is designed such that the user can configure it as general purpose i/o interface, or for connection to other printer devices. the 552/552a provides enhanced uart functions with 16 byte fifos, a modem control interface, and data rates up to 1.5mbps. onboard status registers provide the user with error indications and operational status. the system interrupts and control may be tailored to meet user requirements. an internal loop-back capability allows onboard diagnostics. a programmable baud rate generator is provided to select transmit and receive clock rates from 50 bps to 1.5 mbps. the 552/552a is available in a 68 pin plcc package. the 552/552a is compatible with the 16c450 and 16c550. the difference between the st16c552 and st16c552a is the logic state of the printer port, intp interrupt. the intp interrupt is active high (logic 1) on the st16c552 whereas intp is active low (logic 0) on the st16c552a part when the interrupt latch mode is selected. the 552/552a is fabricated in an advanced cmos process with power down mode to reduce the power consumption. the 552a does not support the power down mode. i n t b i n t p - s l c t i n i n i t - a u t o f d x t - s t r o b e g n d p d 0 p d 1 p d 2 p d 3 p d 4 p d 5 p d 6 p d 7 i n t a r d o u t - r x rd ya - c d b g n d - r i b - d s r b c l k - c sb g n d b i d e n a c k p e - b u s y s l c t v cc e rr o r r x b - r x rd yb g n d - c t s a - c d a - r i a - d s r a - c sa a 2 a 1 a 0 - i o w - i o r - c sp - r es e t v cc r x a - t x r d y b i n t s e l 9 8 7 6 5 4 3 2 1 6 8 6 7 6 6 6 5 6 4 6 3 6 2 6 1 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 6 0 5 9 5 8 5 7 5 6 5 5 5 4 5 3 5 2 5 1 5 0 4 9 4 8 4 7 4 6 4 5 4 4 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 4 0 4 1 4 2 4 3 s t 1 6 c 55 2 c j 68 s t 1 6 c 55 2 a c j 6 8 t xb - d t r b - r t s b - c t s b d 0 d 1 d 2 d 3 d 4 d 5 d 6 d 7 - t x r d y a v cc - r t s a - d t r a t xa features added features in device revision "f" and newer: 5v tolerant inputs pin to pin and functional compatible to st16c452/452ps, tl16c552 2.97 to 5.5 volt operation software compatible with ins8250, ns16c550 1.5 mbps transmit/receive operation (24mhz) 16 byte transmit fifo 16 byte receive fifo with error flags independent transmit and receive control modem and printer status registers uart port and printer port bi-directional printer port direction set by single control bit or 8 bitpattern (aa/55) modem control signals (-cts, -rts, -dsr, -dtr,-ri, -cd) programmable character lengths (5, 6, 7, 8) even, odd, or no parity bit generation and detection ttl compatible inputs, outputs power down mode ordering information part number pins package operating temperature device status st16c552cj68 68 plcc 0 c to + 70 c active st16c552acj68 68 plcc 0 c to + 70 c active ST16C552IJ68 68 plcc -40 c to + 85 c active st16c552aij68 68 plcc -40 c to + 85 c active
2 st16c552/552a rev. 3.40 figure 1, block diagram d 0 - d 7 - i o r - i o w - re s e t b i d e n a 0 - a 2 - c s a - c s b - c s p i n t a , b i n t p - rxr d y - t xr d y - d t r a , b - r t s a , b - c t s a , b - r i a , b - c d a , b - d s r a , b t x a , b rx a , b d a t a b u s & c o n t r o l l o g i c r e g i s t e r s e l e c t l o g i c m o d e m c o n t r o l l o g i c i n t e r r u p t c o n t r o l l o g i c t r a n s m i t f i f o r e g i s t e r s t r a n s m i t s h i f t r e g i s t e r r e c e i ve f i f o r e g i s t e r s r e c e i ve s h i f t r e g i s t e r i n t e r c o n n e c t b u s l i n e s & c o n t r o l s i g n a l s c l o c k & b a u d r a t e g e n e r a t o r c l k p r i n t e r d a t a p o r t s p d 0 - p d 7 p r i n t e r c o n t r o l l o g i c - s t r o b e i n i t - a u t o f d x - s e l c t i n p e , s e l ec t - b u s y , - a c k er r o r
3 st16c552/552a rev. 3.40 symbol description symbol pin signal type pin description a0 35 i address-0 select bit - internal registers address selection. a1 34 i address-1 select bit - internal registers address selection. a2 33 i address-2 select bit - internal registers address selection. -ack 68 i acknowledge (with internal pull-up) - general purpose inputor line printer acknowledge (active low). a logic 0 from the printer, indicates successful data transfer to the print buffer. -autofdxt 56 i/o general purpose i/o (open drain, with internal pull-up) orautomatic line feed (open drain input with internal pull-up). when this signal is low the printer should automatically line feed after each line is printed. biden 1 i bi-direction enable - pd7-pd0 direction select. a logic 0sets the parallel port for i/o select register control. a logic 1 sets the parallel port for control register bit-5 control. busy 66 i busy (with internal pull-up) - general purpose input or lineprinter busy (active high). can be used as an output from the printer to indicate printer is not ready to accept data. clk 4 i clock input. - an external clock must be connected to thispin to clock the baud rate generator and internal circuitry (see programmable baud rate generator). this input is not 5v tolerant. -csa 32 i chip select a - a logic 0 at this pin enables the serialchannel-a uart registers for cpu data transfers. -csb 3 i chip select b - a logic 0 at this pin enables the serialchannel-b uart registers for cpu data transfers. -csp 38 i printer port chip select - (active low). a logic 0 at this pinenables the parallel printer port registers and/or pd7-pd0 for external cpu data transfers. d0-d7 14-21 i/o data bus (bi-directional) - these pins are the eight bit, threestate data bus for transferring information to or from the controlling cpu. d0 is the least significant bit and the first data bit in a transmit or receive serial data stream.
4 st16c552/552a rev. 3.40 symbol description symbol pin signal type pin description -error 63 i error, printer (with internal pull-up) - general purpose inputor line printer error. this pin may be connected to the active low (logic 0) output of a printer to indicate an error condition. gnd 2,7,54 pwr signal and power ground. 27 init 57 i/o initialize (open drain, with internal pull-up) - general pur-pose i/o signal. this pin may be connected for initialization service of a connected line printer. generally when this signal is a logic 0, any connected printer will be initialized. int a/b 45,60 o interrupt output a/b ( three state active high) - these pinsprovide individual channel interrupts, int a-b. int a-b are enabled when mcr bit-3 is set to a logic 1, interrupts are enabled in the interrupt enable register (ier), and when an interrupt condition exists. interrupt conditions include: re- ceiver errors, available receiver buffer data, transmit buffer empty, or when a modem status flag is detected. -intp 59 o printer interrupt, - this pin can be used to signal theinterrupt status of a connected printer. this pin basically tracks the -ack input pin, when intsel is a logic 0 and interrupts are enabled by bit-4 in the control register. a latched mode can be selected by setting intsel to a logic 1. in this case the interrupt -intp is generated normally but does not return to the inactive state until the trailing edge of the read cycle (-ior pin). -intp is three stated until con bit-4 is set to a logic 1. the difference between the st16c552 and st16c552a is the output state of intp. intp is active high (logic 1) on the st16c552 whereas intp is active low (logic 0) on the st16c552a part when the interrupt latch mode is selected. intsel 43 i interrupt select mode - this pin selects the interrupt type forthe printer port (-intp). when this pin is a logic 0, the external -ack signal state is generally followed, minus some minor propagation delay. making this pin a logic 1 or connecting it to vcc will set the interrupt latched mode. in this case the printer interrupt (-intp) will not return to a logic 0 on the 552 or a logic 1 on the 552a (552a is inverted), until the
5 st16c552/552a rev. 3.40 symbol description symbol pin signal type pin description trailing edge of -ior (end of the external cpu read cycle). -ior 37 i read strobe.- a logic 0 transition on this pin will place thecontents of an internal register defined by address bits a0- a2 for either uart channels a/b or a0-a1 for the printer port, onto d0-d7 data bus for a read cycle by an external cpu. -iow 36 i write strobe.- a logic 0 transition on this pin will transfer thedata on the internal data bus (d0-d7), as defined by either address bits a0-a2 for uart channels a/b or a0-a1 for the printer port, into an internal register during a write cycle from an external cpu. pd7-pd0 46-53 i/o printer data port (bi-directional three state) - these pins arethe eight bit, three state data bus for transferring information to or from an external device (usually a printer). d0 is the least significant bit. pd7-pd0 are latched during a write cycle (output mode). pe 67 i paper empty - general purpose input or line printer paperempty (internal pull-up). this pin can be connected to provide a printer out of paper indication. rdout 44 o read out (active high) - this pin goes to a logic 1 when theexternal cpu is reading data from the 552/552a. this signal can be used to enable/disable external transceivers or other logic functions. -reset 39 i master reset (active low) - a logic 0 on this pin will reset theinternal registers and all the outputs. the uart transmitter output and the receiver input will be disabled during reset time. (see st16c552/552a external reset conditions for initialization details.) -rxrdy a/b 9,61 o receive ready a/b (active low). this function is associatedwith the dual channel uarts and provide the rx fifo/ rhr status for individual receive channels (a-b). a logic 0 indicates there is receive data to read/unload, i.e., receive ready status with one or more rx characters available in the fifo/rhr. this pin is a logic 1 when the fifo/rhr is empty or when the programmed trigger level has not been
6 st16c552/552a rev. 3.40 symbol pin signal type pin description reached. slct 65 i select (with internal pull-up) - general purpose input or lineprinter select status. normally this pin is connected to a printer output (active low) that indicates the ready status of a printer, i.e., on-line and/or on-line and ready. -slctin 58 i/o select in (open drain, with internal pull-up) - generalpurpose i/o or line printer select. this pin can be read via bit-3 in the printer command register, or written via bit-3 in the printer control register. as this pin is open-drain, it can be wire-ord with other outputs. normally this signal is connected with a printer to select the printer with an active low. -strobe 55 i/o strobe (open drain, with internal pull-up) - general purposei/o or data strobe output. normally this output is connected to a printer and indicates that valid data is available at the printer port (pd0-pd7). -txrdy a/b 22,42 o transmit ready a/b (active low). these outputs provide thetx fifo/thr status for individual transmit channels (a-b). as such, an individual channels -txrdy a-b buffer ready status is indicated by logic 0, i.e., at least one location is empty and available in the fifo or thr. this pin goes to a logic 1 when there are no more empty locations in the fifo or thr. vcc 23,40,64 pwr 2.97 to 5.5v power supply input. all inputs are 5v tolerantexcept for xtal1 and all printer port inputs for devices with revision "f" and newer. -cd a/b 29,8 i carrier detect (active low) - these inputs are associatedwith individual uart channels a through b. a logic 0 on this pin indicates that a carrier has been detected by the modem for that channel. -cts a/b 28,13 i clear to send (active low) - these inputs are associated withindividual uart channels, a through b. a logic 0 on this pin(s) indicates the modem or data set is ready to accept transmit data from the 552/552a for the given channel. status can be tested by reading msr bit-4 for that channel(s). -cts has no symbol description
7 st16c552/552a rev. 3.40 symbol pin signal type pin description effect on the transmit or receive operation. -dsr a/b 31,5 i data set ready (active low) - these inputs are associatedwith individual uart channels, a through b. a logic 0 on this pin(s) indicates the modem or data set is powered-on and is ready for data exchange with the uart. this pin has no effect on the uart's transmit or receive operation. -dtr a/b 25,11 o data terminal ready (active low) - these outputs areassociated with individual uart channels, a through b. a logic 0 on this pin(s) indicates that the 552/552a is powered- on and ready. this pin can be controlled via the modem control register for channel(s) a-b. writing a logic 1 to mcr bit-0 will set the -dtr output to logic 0, enabling the modem. this pin will be a logic 1 after writing a logic 0 to mcr bit- 0, or after a reset. this pin has no effect on the uart's transmit or receive operation. -ri a/b 30,6 i ring indicator (active low) - these inputs are associatedwith individual uart channels, a through b. a logic 0 on this pin(s) indicates the modem has received a ringing signal from the telephone line(s). a logic 1 transition on this input pin will generate an interrupt for the ringing channel(s). this pin does not have any effect on the transmit or receive operation. -rts a/b 24,12 o request to send (active low) - these outputs are associatedwith individual uart channels, a through b. a logic 0 on the -rts pin(s) indicates the transmitter has data ready and waiting to send for the given channel(s). writing a logic 1 in the modem control register (mcr bit-1) will set this pin to a logic 0 indicating data is available. after a reset this pin will be set to a logic 1. this pin does not have any effect on the transmit or receive operation. rx a/b 41,62 i receive data input, rx a-b. - these inputs are associatedwith individual serial channel(s) to the 552. the rx signal will be a logic 1 during reset, idle (no data), or when the transmitter is disabled. during the local loop-back mode, the rx input pins are disabled and tx data is internally connected to the symbol description
8 st16c552/552a rev. 3.40 symbol pin signal type pin description uart rx inputs, internally. tx a/b 26,10 o transmit data, tx a-b - these outputs are associated withindividual serial transmit channel(s) from the 552/552a. the tx signal will be a logic 1 during reset, idle (no data), or when the transmitter is disabled. during the local loop- back mode, the tx output pins are disabled and tx data is internally connected to the uart rx inputs. general description the 552/552a provides serial asynchronous receivedata synchronization, parallel-to-serial and serial-to- parallel data conversions for both the transmitter and receiver sections. these functions are necessary for converting the serial data stream into parallel data that is required with digital data systems. synchronization for the serial data stream is accomplished by adding start and stops bits to the transmit data to form a data character (character orientated protocol). data integ- rity is insured by attaching a parity bit to the data character. the parity bit is checked by the receiver for any transmission bit errors. the electronic circuitry to provide all these functions is fairly complex especially when manufactured on a single integrated silicon chip. the 552/552a represents such an integration with greatly enhanced features. the 552/552a is fabricated with an advanced cmos process. the 552/552a is an upward solution that provides 16 bytes of transmit and receive fifo memory, instead of none in the 16c452. the 552/552a is designed to work with high speed modems and shared network environments, that require fast data processing time. increased performance is realized in the 552/552a by the transmit and receive fifo's. this allows the external processor to handle more networking tasks within a given time. for example, the st16c452 without a receive fifo, will require unloading of the rhr in 95.5 microseconds (this example uses a character length of 11 bits, including start/stop bits at 115.2kbps). this means the external cpu will have to service the receive fifo every 100 microseconds. however with the 16 byte fifo in the 552/552a, the databuffer will not require unloading/loading for 1.53 ms. this increases the service interval giving the external cpu additional time for other applications and reducing the overall uart interrupt servicing time. in addition, the 4 selectable levels of fifo trigger interrupt is uniquely provided for maximum data throughput performance especially when operating in a multi-channel environ- ment. the fifo memory greatly reduces the bandwidth requirement of the external controlling cpu, increases performance, and reduces power consumption. the 552/552a combines the package functions of a dual uart and a printer interface on a single inte- grated chip. the 552/552a uart is indented to be software compatible with the ins8250/ns16c550 while the bi-directional printer interface mode is in- tended to operate with a centronics type parallel printer. however, the printer interface is designed such that it may be configured to operate with other parallel printer interfaces or used as a general purpose parallel interface. the 552/552a is available in two versions, the st16c552 and the st16c552a. the 552a provides a active low (logic 0) interrupt for the printer port (intp) while the 552 provides an active high (logic 1) intp interrupt. additionally, the 552a does not support the power down feature. the 552/552a is capable of operation to 1.5mbps with a 24 mhz external clock input. with an external clock input of 1.8432 mhz the user can select data rates up to 115.2 kbps.
9 st16c552/552a rev. 3.40 the rich feature set of the 552/552a is availablethrough internal registers. selectable receive fifo trigger levels, selectable tx and rx baud rates, modem interface controls, and a power-down mode are all standard features. following a power on reset or an external reset, the 552/552a is software compat- ible with the previous generation, 16c452. functional descriptions functional modestwo functional user modes are selectable for the 552/ 552a package. the first of these provides the dual uart functions, while the other provides the func- tions of a parallel printer interface. these features are available through selection at the package interface select pins. uart a-b functions the uart mode provides the user with the capability to transfer information between an external cpu and the 552/552a package. a logic 0 on chip select pins - csa or -csb allows the user to configure, send data, and/or receive data via the uart channels a-b. printer port functions the printer mode provides the user with the capability to transfer information between an external cpu and the 552/552a parallel printer port. a logic 0 on chip select pin -csp allows the user to configure, send data, and/ or receive data via the bi-directional parallel 8-bit data bus, pd0-pd7. internal registers the 552/552a provides 12 internal registers for monitor- ing and control of the uart functions and another 6 registers for monitoring and controlling the printer port. these resisters are shown in table 4 below. the uart registers function as data holding registers (thr/rhr), interrupt status and control registers (ier/isr), a fifo control register (fcr), line status and control registers (lcr/lsr), modem status and control registers (mcr/ msr), programmable data rate (clock) control registers (dll/dlm), and a user assessable scratchpad register (spr). the printer port registers functions data holding registers (pr), i/o status register (sr), i/o selectregister (iosel), and a command and control register (com/con). register functions are more fully de- scribed in the following paragraphs.
10 st16c552/552a rev. 3.40 table 4, internal register decode a2 a1 a0 read mode write mode general register set (thr/rhr, ier/isr, mcr/msr, lcr/lsr, spr): note 1* 0 0 0 receive holding register transmit holding register 0 0 1 interrupt enable register 0 1 0 interrupt status register fifo control register 0 1 1 line control register 1 0 0 modem control register 1 0 1 line status register 1 1 0 modem status register 1 1 1 scratchpad register scratchpad register baud rate register set (dll/dlm): note *2 0 0 0 lsb of divisor latch lsb of divisor latch 0 0 1 msb of divisor latch msb of divisor latch printer port set (pr/sr/iosel/com/con): note *3 x 0 0 port register port register x 0 1 status register i/o select register x 1 0 command register control register note 1* the general register set is accessible only when cs a or cs b is a logic 0.note 2* the baud rate register set is accessible only when cs a or cs b is a logic 0 and lcr bit-7 is a logic 1. note 3*: printer port register set is accessible only when -csp is a logic 0 in conjunction with the states of the interface signal biden and printer control register bit-5 or iosel register.
11 st16c552/552a rev. 3.40 fifo operationthe 16 byte transmit and receive data fifo's are enabled by the fifo control register (fcr) bit-0. the user can set the receive trigger level via fcr bits 6/ 7 but not the transmit trigger level. the transmit interrupt trigger level is set to 16 following a reset. the receiver fifo section includes a time-out function to ensure data is delivered to the external cpu. an interrupt is generated whenever the receive holding register (rhr) has not been read following the load- ing of a character or the receive trigger level has not been reached. hardware/software and time-out interrupts the interrupts are enabled by ier bits 0-3. care must be taken when handling these interrupts. following a reset the transmitter interrupt is enabled, the 552/552a will issue an interrupt to indicate that transmit holding register is empty. this interrupt must be serviced prior to continuing operations. the lsr register provides the current singular highest priority interrupt only. it could be noted that cts and rts interrupts have lowest interrupt priority. a condition can exist where a higher priority interrupt may mask the lower priority cts/rts interrupt(s). only after servicing the higher pending interrupt will the lower priority cts/ rts interrupt(s) be reflected in the status register. servicing the interrupt without investigating further interrupt conditions can result in data errors. when two interrupt conditions have the same priority, it is important to service these interrupts correctly. receive data ready and receive time out have the same interrupt priority (when enabled by ier bit-3). the receiver issues an interrupt after the number of characters have reached the programmed trigger level. in this case the 552/552a fifo may hold more characters than the programmed trigger level. follow- ing the removal of a data byte, the user should recheck lsr bit-0 for additional characters. a receive time out will not occur if the receive fifo is empty. the time out counter is reset at the center of each stop bit received or each time the receive holding register (rhr) is read (see figure 4, receive time-out interrupt). the actual time out value is t ( t ime out length in bits) = 4 x p ( p rogrammed word length) + 12. to convert the time out value to a character value, the user has to considerthe complete word length, including data information length, start bit, parity bit, and the size of stop bit, i.e., 1x, 1.5x, or 2x bit times. example -a: if the user programs a word length of 7, with no parity and one stop bit, the time out will be: t = 4 x 7( programmed word length) +12 = 40 bit times. the character time will be equal to 40 / 9 = 4.4 characters, or as shown in the fully worked out ex- ample: t = [(programmed word length = 7) + (stop bit = 1) + (start bit = 1) = 9]. 40 (bit times divided by 9) = 4.4 characters. example -b: if the user programs the word length = 7, with parity and one stop bit, the time out will be: t = 4 x 7(programmed word length) + 12 = 40 bit times. character time = 40 / 10 [ (programmed word length = 7) + (parity = 1) + (stop bit = 1) + (start bit = 1) = 4 characters. programmable baud rate generator the 552/552a supports high speed modem technolo- gies that have increased input data rates by employing data compression schemes. for example a 33.6kbps modem that employs data compression may require a 115.2kbps input data rate. a 128.0kbps isdn modem that supports data compression may need an input data rate of 460.8kbps. the 552/552a can support a standard data rate of 921.6kbps. single baud rate generator is provided for the trans- mitter and receiver, allowing independent tx/rx channel control. the programmable baud rate gen- erator is capable of accepting an input clock up to 24 mhz, as required for supporting a 1.5mbps data rate. the 552/552a requires that an external clock source be connected to the clk input pin to clock the internal baud rate generator for standard or custom rates. (see baud rate generator programming below). the generator divides the input 16x clock by any divisor from 1 to 2 16 -1. the 552/552a divides the basic external clock by 16. the basic 16x clock provides table rates tosupport standard and custom applications using the
12 st16c552/552a rev. 3.40 same system design. the rate table is configured via thedll and dlm internal register functions. customized baud rates can be achieved by selecting the proper divisor values for the msb and lsb sections of baud rate generator. programming the baud rate generator registers dlm (msb) and dll (lsb) provides a user capability for selecting the desired final baud rate. the example intable 5 below, shows the selectable baud rate table available when using a 1.8432 mhz external clock input. table 5, baud rate generator programming table (1.8432 mhz clock): output output user dlm dll baud rate 16 x clock 16 x clock program program mcr divisor divisor value value (decimal) (hex) (hex) (hex) 50 2304 900 09 00 110 1047 417 04 17 150 768 300 03 00 300 384 180 01 80 600 192 c0 00 c0 1200 96 60 00 60 2400 48 30 00 30 4800 24 18 00 18 7200 16 10 00 10 9600 12 0c 00 0c 19.2k 6 06 00 06 38.4k 3 03 00 03 57.6k 2 02 00 02 115.2k 1 01 00 01
13 st16c552/552a rev. 3.40 dma operationthe 552/552a fifo trigger level provides additional flexibility to the user for block mode operation. lsr bits 5-6 provide an indication when the transmitter is empty or has an empty location(s). the user can optionally operate the transmit and receive fifo's in the dma mode (fcr bit-3). when the transmit and receive fifo's are enabled and the dma mode is deactivated (dma mode 0), the 552/552a activates the interrupt output pin for each data transmit or receive operation. when dma mode is activated (dma mode 1), the user takes the advantage of block mode operation by loading or unloading the fifo in a block sequence determined by the receive trigger level and the transmit fifo. in this mode, the 552/552a sets the interrupt output pin when charac- ters in the transmit fifo is below 16, or the characters in the receive fifo's are above the receive trigger level. power down mode the 552 is designed to operate with low power con- sumption. the 552 (only) is designed with a special power down mode to further reduce power consump- tion when the chip is not being used. when mcr bit- 7 and ier bit-5 are enabled (set to a logic 1), the 552 powers down. the use of two power down enable bits helps to prevent accidental software shut-down. the 552 will remain powered down until disabled by setting either ier bit-5 or mcr bit-7 to a logic 0. loop-back mode the internal loop-back capability allows onboard diag- nostics. in the loop-back mode the normal modem interface pins are disconnected and reconfigured for loop-back internally. mcr register bits 0-3 are used for controlling loop-back diagnostic testing. in the loop-back mode int enable and mcr bit-2 in the mcr register (bits 2,3) control the modem -ri and -cd inputs respectively. mcr signals -dtr and -rts (bits 0-1) are used to control the modem -cts and -dsr inputs respectively. the transmitter output (tx) and the receiver input (rx) are disconnected from their associated interface pins, and instead are connected together internally (see figure 6). the -cts, -dsr, -cd,and -ri are disconnected from their normal modem control inputs pins, and instead are connected inter- nally to -dtr, -rts, int enable and mcr bit-2. loop- back test data is entered into the transmit holding register via the user data bus interface, d0-d7. the transmit uart serializes the data and passes the serial data to the receive uart via the internal loop-back connection. the receive uart converts the serial data back into parallel data that is then made available at the user data interface, d0-d7. the user optionally com- pares the received data to the initial transmitted data for verifying error free operation of the uart tx/rx circuits. in this mode, the receiver and transmitter interrupts are fully operational. the modem control interrupts are also operational. however, the interrupts can only be read using lower four bits of the modem control register (mcr bits 0-3) instead of the four modem status register bits 4-7. the interrupts are still con- trolled by the ier.
14 st16c552/552a rev. 3.40 figure 6, internal loop-back mode diagram d 0 - d 7 - i o r - i o w - re s e t b i d e n a 0 - a 2 - c s a - c s b - c s p i n t a , b i n t p - rxr d y - t xr d y t x a , b rx a , b d a t a b u s & c o n t r o l l o g i c r e g i s t e r s e l e c t l og i c i n t e r r u p t c o n t r o l l og i c t r a n s m i t f i f o r e g i s t e r s t r a n s m i t s h i f t r e g i s t e r r ece i ve f i f o r e g i s t e r s r ece i ve s h i f t r e g i s t e r i n t e r c o n n ec t b u s l i n e s & c o n t r o l s i g n a l s c l o c k & b a u d r a t e g e n e r a t o r c l k p r i n t e r d a t a p o r t s p d 0 - p d 7 p r i n t e r c o n t r o l l og i c - s t r o be i n i t - a u t o f d x - s e l c t i n p e , s e l e c t - b u s y , - a c k er r o r m od e m c o n t r o l l og i c - c t s - r t s - d t r - d s r - r i - c d ( - o p 1 ) ( - o p 2 ) m cr b i t - 4 = 1
15 st16c552/552a rev. 3.40 input and/or output functions. the signals have internalpull-up resistors and can be wire-or'd. normally, - strobe is used to strobe pd0-pd7 bus data into a printer input buffer. -slctin normally selects the printer while autofdxt signals the printer to auto-linefeed. other signals provide similar printer functions but are not bi-directional. the printer functions for these signals are described in table 1, symbol description. the interface provides a mode steering signal called biden. biden controls the bi-directional 8-bit data bus (pd0-pd7) direction, input or output. when biden is a logic 1 a single control bit (d5) in the control register sets the input or output mode. setting biden to a logic 0 however sets an ibm interface compatible mode. in this mode the bus direction (input/output) is set by eight data bits in the iosel register. an aa (hex) pattern sets the input mode while a 55 (hex) pattern sets the output mode. i/o direction is depicted in table 6 below. printer portthe 552/552a contains a general purpose 8-bit parallel interface port that is designed to directly interface with a centronics printer. a number of the control/ interrupt signals and the 8-bit data bus have been designed as bi-directional data buses. this allows the interface to function with other device parallel data bus applications. signal -ack is used to generate an -intp interface interrupt that would normally be connected to the user cpu. -intp can be made to follow the -ack signal, normal mode (see figure 7) or it can be config- ured for the latch mode. in the latch mode the interrupt is not cleared until printer status register (sr) is read. another signal (init) can be made to function as an outgoing or incoming interrupt, or combined with other interrupts to provide a common wire-or interrupt output. interface signals -strobe, -autofdxt, and -slctin are bi-directional and can be used as combinations of table 6, pd0-pd7 i/o direction mode selection port direction biden control register (d5) i/o select register input mode 0 x (note 4) aa hex output mode 0 x (note 4) 55 hex output mode 1 0 x (note 4) input mode 1 1 x (note 4) note: 4 = don't care
16 st16c552/552a rev. 3.40 register functional descriptions the following table delineates the assigned bit functions for the eighteen 552/552a internal registers. theassigned bit functions are more fully defined in the following paragraphs. table 7, st16c552/552a internal registers a2 a1 a0 register bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 [default] note 5* general register set: note 1* 0 0 0 rhr [xx] bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 0 0 0 thr [xx] bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 0 0 1 ier [00] 0 0 en 0 modem receive transmit receive pwr status line holding holding down interrupt status register register mode interrupt interrupt 0 1 0 fcr [00] rcvr rcvr 0 0 dma xmit rcvr fifo trigger trigger mode fifo fifo enable (msb) (lsb) select reset reset 0 1 0 isr [01] fifo's fifo's 0 0 int int int int enabled enabled priority priority priority status bit-2 bit-1 bit-0 0 1 1 lcr [00] divisor set set even parity stop word word latch break parity parity enable bits length length enable bit-1 bit-0 1 0 0 mcr [00] pwr 0 0 loop int a/b [x] -rts -dtr down back enable 1 0 1 lsr [60] fifo thr & thr. break framing parity overrun receive data tsr empty interrupt error error error data error empty ready 1 1 0 msr [x0] cd ri dsr cts delta delta delta delta -cd -ri -dsr -cts 1 1 1 spr [ff] bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 special register set: note *2 0 0 0 dll [xx] bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 0 0 1 dlm [xx] bit-15 bit-14 bit-13 bit-12 bit-11 bit-10 bit-9 bit-8
17 st16c552/552a rev. 3.40 a2 a1 a0 register bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 [default] note 5* printer port register set: note 3* [x] 0 0 pr[00] bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 [x] 0 0 pr[00] bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 [x] 0 1 sr[4f] -busy -ack pe slct error -irq logic logic state a1o a1o [x] 0 1 iosel bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 [x] 1 0 com[e0] logic logic logic -intp -slctin init -auto -strobe a1o a1o a1o enable fdxt [x] 1 0 con[00] [x] [x] pd 0-7 -intp -slctin init -auto -strobe in/out enable fdxt note 1* the general register set is accessible only when cs a or cs b is a logic 0.note 2* the baud rate register set is accessible only when cs a or cs b is a logic 0 and lcr bit-7 is a logic 1. note 3*: printer port register set is accessible only when -csp is a logic 0 in conjunction with the states of the interface signal biden and printer control register bit-5 or iosel register. note 5* the value between the square brackets represents the register's initialized hex value, x =n/a. modem (uart) register descriptions transmit (thr) and receive (rhr) holding reg-isters the serial transmitter section consists of an 8-bit transmit hold register (thr) and transmit shift register (tsr). the status of the thr is provided in the line status register (lsr). writing to the thr transfers the contents of the data bus (d7-d0) to the thr, providing that the thr or tsr is empty. the thr empty flag in the lsr register will be set to a logic 1 when the transmitter is empty or when data is transferred to the tsr. note that a write operation can be performed when the transmit holding register empty flag is set (logic 0 = fifo full, logic 1= at least one fifo location available).the serial receive section also contains an 8-bit receive holding register, rhr. receive data is removed from the 552/552a and receive fifo by reading the rhr register. the receive section pro- vides a mechanism to prevent false starts. on the falling edge of a start or false start bit, an internal receiver counter starts counting clocks at the 16x clock rate. after 7 1/2 clocks the start bit time should be shifted to the center of the start bit. at this time the start bit is sampled and if it is still a logic 0 it is validated. evaluating the start bit in this manner prevents the receiver from assembling a false charac- ter. receiver status codes will be posted in the lsr.
18 st16c552/552a rev. 3.40 interrupt enable register (ier)the interrupt enable register (ier) masks the inter- rupts from receiver ready, transmitter empty, line status and modem status registers. these interrupts would normally be seen on the int a,b output pins. ier vs receive fifo interrupt mode operation when the receive fifo (fcr bit-0 = a logic 1) and receive interrupts (ier bit-0 = logic 1) are enabled, the receive interrupts and register status will reflect the following: a) the receive data available interrupts are issued to the external cpu when the fifo has reached the programmed trigger level. it will be cleared when the fifo drops below the programmed trigger level. b) fifo status will also be reflected in the user accessible isr register when the fifo trigger level is reached. both the isr register status bit and the interrupt will be cleared when the fifo drops below the trigger level. c) the data ready bit (lsr bit-0) is set as soon as a character is transferred from the shift register to the receive fifo. it is reset when the fifo is empty. ier vs receive/transmit fifo polled mode op- eration when fcr bit-0 equals a logic 1; resetting ier bits 0-3 enables the 552/552a in the fifo polled mode of operation. since the receiver and transmitter have separate bits in the lsr either or both can be used in the polled mode by selecting respective transmit or receive control bit(s). a) lsr bit-0 will be a logic 1 as long as there is one byte in the receive fifo. b) lsr bit 1-4 will provide the type of errors encoun- tered, if any. c) lsr bit-5 will indicate when the transmit fifo is empty. d) lsr bit-6 will indicate when both the transmitfifo and transmit shift register are empty. e) lsr bit-7 will indicate any fifo data errors. ier bit-0: this interrupt will be issued when the fifo has reached the programmed trigger level or is cleared when the fifo drops below the trigger level in the fifo mode of operation. logic 0 = disable the receiver ready interrupt. (normal default condition) logic 1 = enable the receiver ready interrupt. ier bit-1: this interrupt will be issued whenever the thr is empty and is associated with bit-1 in the lsr register. logic 0 = disable the transmitter empty interrupt. (normal default condition) logic 1 = enable the transmitter empty interrupt. ier bit-2: this interrupt will be issued whenever a fully as- sembled receive character is transferred from the rsr to the rhr/fifo, i.e., data ready, lsr bit-0. logic 0 = disable the receiver line status interrupt. (normal default condition) logic 1 = enable the receiver line status interrupt. ier bit-3: logic 0 = disable the modem status register interrupt. (normal default condition) logic 1 = enable the modem status register interrupt. ier bit -4: not used - initialized to a logic 0. ier bit-5: (st16c552 only) logic 0 = disable the power down mode. (normal default condition). the st16c552a does not support the power down mode and this bit is set to a0o. logic 1 = enable the power down mode (mcr bit-7 must also be a logic 1 before power down will be activated).
19 st16c552/552a rev. 3.40 ier bit 6-7:not used - initialized to a logic 0. fifo control register (fcr) this register is used to enable the fifo's, clear the fifo's, set the receive fifo trigger levels, and select the dma mode. the dma, and fifo modes are defined as follows: dma mode mode 0 set and enable the interrupt for each single transmit or receive operation, and is similar tothe st16c450 mode. transmit ready (-txrdy) will go to a logic 0 when ever an empty transmit space is available in the transmit holding register (thr). receive ready (-rxrdy) will go to a logic 0 when- ever the receive holding register (rhr) is loaded with a character. mode 1 set and enable the interrupt in a block mode operation. the transmit interrupt is set when thetransmit fifo is below the programmed trigger level. -txrdy remains a logic 0 as long as one empty fifo location is available. the receive interrupt is set when the receive fifo fills to the programmed trigger level. however the fifo continues to fill regardless of the programmed level until the fifo is full. -rxrdy remains a logic 0 as long as the fifo fill level is above the programmed trigger level. fcr bit-0: logic 0 = disable the transmit and receive fifo. (normal default condition) logic 1 = enable the transmit and receive fifo. this bit must be a a1o when other fcr bits are written to or they will not be programmed.fcr bit-1: logic 0 = no fifo receive reset. (normal default condition) logic 1 = clears the contents of the receive fifo and resets the fifo counter logic (the receive shift regis- ter is not cleared or altered). this bit will return to a logic 0 after clearing the fifo. fcr bit-2:logic 0 = no fifo transmit reset. (normal default condition) logic 1 = clears the contents of the transmit fifo and resets the fifo counter logic (the transmit shift regis- ter is not cleared or altered). this bit will return to a logic 0 after clearing the fifo. fcr bit-3: logic 0 = set dma mode a0o. (normal default condi- tion) logic 1 = set dma mode a1.o transmit operation in mode 0: when the 552/552a is in the st16c450 mode (fifo's disabled, fcr bit-0 = logic 0) or in the fifo mode (fifo's enabled, fcr bit-0 = logic 1, fcr bit-3 = logic 0) and when there are no characters in the transmit fifo or transmit holding register, the -txrdy pin will be a logic 0. once active the -txrdy pin will go to a logic 1 after the first character is loaded into the transmit holding register. receive operation in mode 0: when the 552/552a is in mode a0o (fcr bit-0 = logic 0) or in the fifo mode (fcr bit-0 = logic 1, fcr bit- 3 = logic 0) and there is at least one character in the receive fifo, the -rxrdy pin will be a logic 0. once active the -rxrdy pin will go to a logic 1 when there are no more characters in the receiver. transmit operation in mode 1: when the 552/552a is in fifo mode ( fcr bit-0 = logic 1, fcr bit-3 = logic 1 ), the -txrdy pin will be a logic 1 when the transmit fifo is completely full. it will be a logic 0 if one or more fifo locations are empty. receive operation in mode 1: when the 552/552a is in fifo mode (fcr bit-0 = logic 1, fcr bit-3 = logic 1) and the trigger level has been reached, or a receive time out has occurred, the - rxrdy pin will go to a logic 0. once activated, it will go to a logic 1 after there are no more characters in the fifo.
20 st16c552/552a rev. 3.40 fcr bit 4-5:not used - initialized to a logic 0. fcr bit 6-7: (logic 0 or cleared is the default condi- tion, rx trigger level = 1) these bits are used to set the trigger level for the receive fifo interrupt. an interrupt is generated when the number of charac- ters in the fifo equals the programmed trigger level. however the fifo will continue to be loaded until it is full. bit-7 bit-6 rx fifo trigger level 0 0 01 0 1 04 1 0 08 1 1 14 interrupt status register (isr)the 552/552a provides four levels of prioritized inter- rupts to minimize external software interaction. the interrupt status register (isr) provides the user with four interrupt status bits. performing a read cycle on the isr will provide the user with the highest pending interrupt level to be serviced. no other interrupts are acknowledged until the pending interrupt is serviced. whenever the interrupt status register is read, the interrupt status is cleared. however it should be noted that only the current pending interrupt is cleared by the read. a lower level interrupt may be seen after reread- ing the interrupt status bits. the interrupt source table 8 (below) shows the data values (bits 0-3) for the four prioritized interrupt levels and the interrupt sources associated with each of these interrupt levels: table 8, interrupt source table priority [isr bits] level bit-3 bit-2 bit-1 bit-0 source of the interrupt 1 0 1 1 0 lsr (receiver line status register) 2 0 1 0 0 rxrdy (received data ready) 2 1 1 0 0 rxrdy (receive data time out) 3 0 0 1 0 txrdy (transmitter holding register empty) 4 0 0 0 0 msr (modem status register)
21 st16c552/552a rev. 3.40 isr bit-0:logic 0 = an interrupt is pending and the isr contents may be used as a pointer to the appropriate interrupt service routine. logic 1 = no interrupt pending. (normal default condi- tion) isr bit 1-3: (logic 0 or cleared is the default condition) these bits indicate the source for a pending interrupt at interrupt priority levels 1, 2, and 3 (see interrupt source table). isr bit 4-5: (logic 0 or cleared is the default condition) not used - initialized to a logic 0. isr bit 6-7: (logic 0 or cleared is the default condition) these bits are set to a logic 0 when the fifo's are not being used in the 16c450 mode. they are set to a logic 1 when the fifo's are enabled in the 16c552/552a mode. line control register (lcr) the line control register is used to specify the asynchronous data communication format. the word length, the number of stop bits, and the parity are selected by writing the appropriate bits in this register. lcr bit 0-1: (logic 0 or cleared is the default condi- tion) these two bits specify the word length to be transmit- ted or received. bit-1 bit-0 word length 0 0 5 0 1 6 1 0 7 1 1 8 lcr bit-2: (logic 0 or cleared is the default condition)the length of stop bit is specified by this bit in conjunction with the programmed word length. bit-2 word length stop bit length (bit time(s)) 0 5,6,7,8 1 1 5 1-1/2 1 6,7,8 2 lcr bit-3:parity or no parity can be selected via this bit. logic 0 = no parity. (normal default condition) logic 1 = a parity bit is generated during the transmis- sion, receiver checks the data and parity for transmis- sion errors. lcr bit-4: if the parity bit is enabled with lcr bit-3 set to a logic 1, lcr bit-4 selects the even or odd parity format. logic 0 = odd parity is generated by forcing an odd number of logic 1's in the transmitted data. the receiver must be programmed to check the same format. (normal default condition) logic 1 = even parity is generated by forcing an even the number of logic 1's in the transmitted. the receivermust be programmed to check the same format. lcr bit-5: if the parity bit is enabled, lcr bit-5 selects the forced parity format. lcr bit-5 = logic 0, parity is not forced. (normal default condition) lcr bit-5 = logic 1 and lcr bit-4 = logic 0, parity bit is forced to a logical 1 for the transmit and receive data. lcr bit-5 = logic 1 and lcr bit-4 = logic 1, parity bit is forced to a logical 0 for the transmit and receive data.
22 st16c552/552a rev. 3.40 lcr lcr lcr parity selection bit-5 bit-4 bit-3 x x 0 no parity 0 0 1 odd parity 0 1 1 even parity 1 0 1 force parity odd parity 1 1 1 forced even parity lcr bit-6:when enabled the break control bit causes a break condition to be transmitted (the tx output is forced to a logic 0 state). this condition exists until disabled by setting lcr bit-6 to a logic 0. logic 0 = no tx break condition. (normal default condition) logic 1 = forces the transmitter output (tx) to a logic 0 for alerting the remote receiver to a line break condition. lcr bit-7: the internal baud rate counter latch and enhance feature mode enable. logic 0 = divisor latch disabled. (normal default condition) logic 1 = divisor latch and enhanced feature register enabled. modem control register (mcr) this register controls the interface with the modem or a peripheral device. mcr bit-0: logic 0 = force -dtr output to a logic 1. (normal default condition) logic 1 = force -dtr output to a logic 0. mcr bit-1: logic 0 = force -rts output to a logic 1. (normal default condition) logic 1 = force -rts output to a logic 0. mcr bit-2: this bit is used in the loop-back mode only. in the loop-back mode this bit is use to write the state of themodem -ri interface signal. mcr bit-3: ( used to control the modem -cd signal in the loop-back mode.)logic 0 = forces int (a-b) outputs to the three state mode. (normal default condition) in the loop-back mode, sets -cd internally to a logic 1. logic 1 = forces the int (a-b) outputs to the active mode. in the loop-back mode, sets -cd internally to a logic 0. mcr bit-4: logic 0 = disable loop-back mode. (normal default condition) logic 1 = enable local loop-back mode (diagnostics). mcr bit 5-6: not used - initialized to a logic 0. mcr bit-7: logic 0 = disable power down mode. (normal, default condition, 552 only) logic 1 = enable power down mode (ier bit-5 must also be a logic 1 before power down will be activated). line status register (lsr) this register provides the status of data transfers between. the 552/552a and the cpu. lsr bit-0: logic 0 = no data in receive holding register or fifo. (normal default condition) logic 1 = data has been received and is saved in the receive holding register or fifo. lsr bit-1: logic 0 = no overrun error. (normal default condition) logic 1 = overrun error. a data overrun error occurred in the receive shift register. this happens when addi- tional data arrives while the fifo is full. in this case the previous data in the shift register is overwritten. note that under this condition the data byte in the receive shift register is not transferred into the fifo, therefore the data in the fifo is not corrupted by the error.
23 st16c552/552a rev. 3.40 lsr bit-2:logic 0 = no parity error. (normal default condition) logic 1 = parity error. the receive character does not have correct parity information and is suspect. in the fifo mode, this error is associated with the character at the top of the fifo. lsr bit-3: logic 0 = no framing error. (normal default condition) logic 1 = framing error. the receive character did not have a valid stop bit(s). in the fifo mode this error is associated with the character at the top of the fifo. lsr bit-4: logic 0 = no break condition. (normal default condi- tion) logic 1 = the receiver received a break signal (rx was a logic 0 for one character frame time). in the fifo mode, only one break character is loaded into the fifo. lsr bit-5: this bit is the transmit holding register empty indi- cator. this bit indicates that the uart is ready to accept a new character for transmission. in addition, this bit causes the uart to issue an interrupt to cpu when the thr interrupt enable is set. the thr bit is set to a logic 1 when a character is transferred from the transmit holding register into the transmitter shift register. the bit is reset to logic 0 concurrently with the loading of the transmitter holding register by the cpu. in the fifo mode this bit is set when the transmit fifo is empty; it is cleared when at least 1 byte is written to the transmit fifo. lsr bit-6: this bit is the transmit empty indicator. this bit is set to a logic 1 whenever the transmit holding register and the transmit shift register are both empty. it is reset to logic 0 whenever either the thr or tsr contains a data character. in the fifo mode this bit is set to one whenever the transmit fifo and transmit shift register are both empty. lsr bit-7: logic 0 = no error. (normal default condition) logic 1 = at least one parity error, framing error or break indication is in the current fifo data. this bit iscleared when rhr register is read. modem status register (msr) this register provides the current state of the control interface signals from the modem, or other peripheral device that the 552/552a is connected to. four bits of this register are used to indicate the changed informa- tion. these bits are set to a logic 1 whenever a control input from the modem changes state. these bits are set to a logic 0 whenever the cpu reads this register. msr bit-0: logic 0 = no -cts change (normal default condition) logic 1 = the -cts input to the 552/552a has changed state since the last time it was read. a modem status interrupt will be generated. msr bit-1: logic 0 = no -dsr change. (normal default condition) logic 1 = the -dsr input to the 552/552a has changed state since the last time it was read. a modem status interrupt will be generated. msr bit-2: logic 0 = no -ri change. (normal default condition) logic 1 = the -ri input to the 552/552a has changed from a logic 0 to a logic 1. a modem status interrupt will be generated. msr bit-3: logic 0 = no -cd change. (normal default condition) logic 1 = indicates that the -cd input to the has changed state since the last time it was read. a modem status interrupt will be generated. msr bit-4: normally msr bit-4 bit is the compliment of the -cts input. however in the loop-back mode, this bit is equivalent to the rts bit in the mcr register. msr bit-5: dsr (active high, logical 1). normally this bit is the compliment of the -dsr input. in the loop-back mode, this bit is equivalent to the dtr bit in the mcr register.
24 st16c552/552a rev. 3.40 msr bit-6:ri (active high, logical 1). normally this bit is the compliment of the -ri input. in the loop-back mode this bit is equivalent to mcr bit-2 in the mcr register. msr bit-7: cd (active high, logical 1). normally this bit is the compliment of the -cd input. in the loop-back mode this bit is equivalent to mcr bit-3 in the mcr register. note: whenever any msr bit 0-3: is set to logic a1o, a modem status interrupt will be generated. scratchpad register (spr) the st16c552/552a provides a temporary data reg- ister to store 8 bits of user information. printer port register descriptions port register (pr)pr bit 0-7: printer data port (bi-directional) - these pins are the eight bit data bus for transferring information to or from an external device (usually a printer). d0 is the least significant bit. pd7-pd0 are latched during a write cycle (output mode). i/o select register (iosel) this bit is used in conjunction with the state of biden to set the direction (input/output) of the pd7-pd0 data bus. this register is used only when biden is a logic 0. logic 55 (hex) + biden 0 = pd7-pd0 are set for output mode logic aa (hex) + biden 0 = pd7-pd0 are set for input mode status register (sr) this register provides the printer port input logical states and the status of the interrupt -intp based on the condition of the -ack printer port interface signal. the logical state of these pins is dependent on exter- nal interface signals. sr bit 1-0:not used - initialized to a logic 1. sr bit-2: logic 0 = an interrupt is pending when intsel is a logic 0, sr bit-2 basically tracks the -ack input interface pin (returns to a logic 1 when the -ack input returns to a logic 1). however when intsel is a logic 1, the latched mode is selected, sr bit-2 goes to a logic 0 with the -ack input but does not return to a logic 1 until the end of the read cycle, i.e., reading sr will set this bit to a logic 1. logic 1 = no interrupt is pending. (normal inactive state) sr bit-3: logic 0 = -error input is a logic 0. logic 1 = -error input is a logic 1. (normal inactive state) sr bit-4: logic 0 = slct input is a logic 0. (normal inactive state) logic 1 = slct input is a logic 1. sr bit-5: logic 0 = pe input is a logic 0. (normal inactive state) logic 1 = pe input is a logic 1. sr bit-6: logic 0 = -ack input is a logic 0. logic 1 = -ack input is a logic 1. (normal inactive state) sr bit-7: logic 0 = busy input is a logic 0 logic 1 = busy input is a logic 1 (normal inactive state) command register (com) this register provides the printer port input logical states and the status of the printer interrupt init, which is based on the state of con bit-1. com bit-0: -strobe is a bi-directional signal with an open
25 st16c552/552a rev. 3.40 source driver and internal pull-up so that it may be wire-or'd with other outputs. com bit-1 is used to read status while con bit 1 is used to set an output state. if it is to function as an input, con bit-1 shall be set to a logic 1 first. logic 0 = -strobe pin is a logic 1. (normal default condition) logic 1 = -strobe pin is a logic 0. com bit-1: -autofdxt is a bi-directional signal with an open source driver and internal pull-up so that it may be wire-or'd with other outputs. com bit-1 is used to read status while con bit 1 is used to set an output state. if it is to function as an input, con bit-1 shall be set to a logic 1 first. logic 0 = -autofdxt pin is a logic 1. (normal default condition) 1= -autofdxt pin is a logic 0. com bit-2: init is a bi-directional signal with an open source driver and internal pull-up so that it may be wire-or'd with other outputs. com bit-2 is used to read status while con bit 2 is used to set an output state. if it is to function as an input, con bit-1 shall be set to a logic 1 first. logic 0 = init pin is a logic 0. (normal default condition) logic 1 = init pin is a logic 1. com bit-3: -slctin is a bi-directional signal with an open source driver and internal pull-up so that it may be wire-or'd with other outputs. com bit-1 is used to read status while con bit 1 is used to set an output state. if it is to function as an input, con bit-1 shall be set to a logic 1 first. logic 0 = -slctin pin is a logic 1 (normal default condition) logic 1 = -slctin pin is a logic 0 com bit-4: this bit allows the state of -intp to be read back by the external cpu. logic 0 = interrupt (-intp output) is disabled (normal default condition) logic 1 = interrupt (-intp output) is enabledcom bit 5-7: not used - initialized to a logic 1. control register (con) this register provides control of the printer port output logical states and controls the printer interrupts init and -intp. with the exception of pd 0-7 in/out, the status of this register may be read by reading the com register. con bit-0: the -strobe output control bit is under software control, i.e., the hardware will not generate a strobe. it is up to software to return the state of -strobe to the inactive (logic 1) state. the hardware driver is open drain so that -strobe may be wire-or'd. the state of this bit can be read using com bit-0. logic 0 = -strobe output is set to a logic 1. (normal default condition) logic 1 = -strobe output is set to a logic 0. con bit-1: the -autofdxt output control bit is set by software using con bit-1. the hardware driver is open drain so that -autofdxt may be wire-or'd. the state of this bit can be read using com bit-1. logic 0 = -autofdxt output is set to a logic 1. (normal default condition) logic 1 = -autofdxt output is set to a logic 0. con bit-2: the init output control bit is set by software using con bit-2. the hardware driver is open drain so that init may be wire-or'd. the state of this bit can be read using com bit-2. logic 0 = init output is set to a logic 0. (normal default condition) logic 1 = init output is set to a logic 1. con bit-3: the -slctin output control bit is set by software using con bit-3. the hardware driver is open drain so that -autofdxt may be wire-or'd. the state of this bit can be read using com bit-3.
26 st16c552/552a rev. 3.40 logic 0 = -slctin output is set to a logic 1. (normaldefault condition) logic 1 = -slctin output is set to a logic 0. con bit-4: this bit enables or masks the printer interrupt output -intp. the state of this bit can be read using com bit- 4. logic 0 = disable -intp output. (normal default con- dition) logic 1 = enable -intp output. con bit-5: this bit is used in conjunction with the state of biden to set the direction (input/output) of the pd7-pd0 data bus. logic 0 + biden 1 = pd7-pd0 are set for output mode (normal default condition) logic 1 + biden 1 = pd7-pd0 are set for input mode con bit 6-7: not used - initialized to a logic 1. st16c552/552a external reset condition registers reset state (uart)ier bits 0-7=0 isr isr bit-0=1, isr bits 1-7=0 lcr lcr bits 0-7=0 mcr mcr bits 0-7=0 lsr lsr bits 0-4=0,lsr bits 5-6=1 lsr, bit 7=0 msr msr bits 0-3=0,msr bits 4-7=input signals fcr fcr bits 0-7=0 registers reset state printer portiosel iosel bits-0-7=0 sr sr bits 0-1=1, bits 2-7=inputsignals com com bits 0-4=0, bits 5-7=1 con con bits 0-5=0, bits 6-7=1 signals reset state tx a/b high -rts a/b high -dtr a/b high int a/b, p three state mode -rxrdy a/b high -txrdy a/b low pd0-pd7 low, output mode -strobe high, output mode -autofdxt high, output mode init low, output mode -slctin high, output mode
27 st16c552/552a rev. 3.40 t 1w ,t 2w clock pulse duration 17 17 ns t 3w oscillator/clock frequency 8 24 mhz t 6s address setup time 5 0 ns t 7d -ior delay from chip select 10 10 ns t 7w -ior strobe width 35 25 ns t 7h chip select hold time from -ior 0 0 ns t 9d read cycle delay 40 30 ns t 12d delay from -ior to data 35 25 ns t 12h data disable time 25 15 ns t 13d -iow delay from chip select 10 10 ns t 13w -iow strobe width 40 25 ns t 13h chip select hold time from -iow 0 0 ns t 15d write cycle delay 40 30 ns t 16s data setup time 20 15 ns t 16h data hold time 5 5 ns t 17d delay from -iow to output 50 40 ns 100 pf load t 18d delay to set interrupt from modem 40 35 ns 100 pf load input t 19d delay to reset interrupt from -ior 40 35 ns 100 pf load t 20d delay from stop to set interrupt 1 1 rclk t 21d delay from -ior to reset interrupt 45 40 ns 100 pf load t 22d delay from stop to interrupt 45 40 ns t 23d delay from initial int reset to transmit 8 24 8 24 rclk start t 24d delay from -iow to reset interrupt 45 40 ns t 25d delay from stop to set -rxrdy 1 1 rclk t 26d delay from -ior to reset -rxrdy 45 40 ns t 27d delay from -iow to set -txrdy 45 40 ns t 28d delay from start to reset -txrdy 8 8 rclk t 39w -ack pulse width 75 75 ns t 40s pd7 - pd0 setup time 15 10 ns t 41h pd7 - pd0 hold time 30 25 ns t 42d delay from -ack low to interrupt low 10 5 ns t 43d delay from -ior to reset interrupt 10 5 ns t r reset pulse width 40 40 ns n baud rate devisor 1 2 16 -1 1 2 16 -1 rclk ac electrical characteristics t a =0 - 70c (-40 - +85c for industrial grade packages), vcc=3.3 - 5.0 v 10% unless otherwise specified. symbol parameter limits limits units conditions 3.3 5.0 min max min max
28 st16c552/552a rev. 3.40 v ilck clock input low level -0.3 0.6 -0.5 0.6 v v ihck clock and printer port input high level 2.4 vcc 3.0 vcc v v il input low level -0.3 0.8 -0.5 0.8 v v ih input high level (rev "e" and older) 2.0 vcc 2.2 vcc v v ih input high level (rev "f" and newer) 2.0 5.5 2.2 5.5 v v ol output low level on all outputs 0.4 v i ol = 4 ma v ol output low level on all outputs 0.4 v i ol = 4 ma v oh output high level 2.4 v i oh = -4 ma v oh output high level 2.0 v i oh = -1 ma i il input leakage 10 10 m a i cl clock leakage 10 10 m a i cc avg power supply current 1.5 3 ma c p input capacitance 5 5 pf r in internal pull-up resistance 9 22 k w note: see the symbol description table, for a listing of pins having internal pull-up resistors. absolute maximum ratings supply range 7 volts voltage at any pin gnd - 0.3 v to vcc +0.3 v operating temperature -40 c to +85 c storage temperature -65 c to 150 c package dissipation 500 mw dc electrical characteristics t a =0 - 70c (-40 - +85c for industrial grade packages), vcc=2.97 - 5.5v unless otherwise specified. symbol parameter limits limits units conditions 3.3 5.0 min max min max
29 st16c552/552a rev. 3.40 general write timing general read timing a 0 - a 2 - c s - i o r d 0 - d 7 t 6 s t 7 w t 7 h t 9 d t 1 2 d t 1 2 h x 5 5 2 - r d - 2 a c t i v e v a l i d d a t a v a l i d a d d r e s s a c t i v e v a l i d a d d r e s s a c t i v e t 6 s t 7 h t 1 2 d t 1 2 h t 7 w v a l i d d a t a a 0 - a 2 - c s - io w d 0 - d 7 t 6 s t 13 w t 7 h t 1 5 d t 16 s t 1 6 h x 5 5 2 - rd - 2 a c t i v e d a t a v a l i d a d d r e ss a c t i v e v a l i d a d d r e ss a c t i v e t 6 s t 7 h t 16 s t 1 6 h t 13 w d a t a
30 st16c552/552a rev. 3.40 external clock timing modem input/output timing - i o w - r t s - d t r - c d - c t s - d s r i n t - i o r - r i t 17 d t 18 d t 18 d t 19 d t 18 d x 55 2 - m d - 1 a c t i v e a c t i v e c h a ng e o f s t a t e c h a ng e o f s t a t e a c t i v e a c t i v e a c t i v e c h a ng e o f s t a t e c h a ng e o f s t a t e c h a ng e o f s t a t e a c t i v e a c t i v e t 3 w t 1 w t 2 w e x t e rn a l c l o c k e x - c k - 1
31 st16c552/552a rev. 3.40 receive timing s t o p b i t pa r i t y b i t d a t a b i t s ( 5 - 8 ) d 0 d 1 d 2 d 3 d 4 d 5 d 6 d 7 5 d a t a b i t s 6 d a t a b i t s 7 d a t a b i t s s t a r t b i t r x n ex t d a t a s t a r t b i t i n t - i o r t 2 0 d t 2 1 d 1 6 b a u d r a t e c l o c k x 5 52 - r x - 1 a c t i v e a c t i v e
32 st16c552/552a rev. 3.40 receive ready timing in none fifo mode s t o p b i t pa r i t y b i t d a t a b i t s ( 5 - 8 ) d 0 d 1 d 2 d 3 d 4 d 5 d 6 d 7 s t a r t b i t r x n ex t d a t a s t a r t b i t - r x r d y - i o r t 2 5 d t 2 6 d x 5 52 - r x - 2 a c t i v e d a t a r e a d y a c t i v e
33 st16c552/552a rev. 3.40 receive timing in fifo mode s t o p b i t pa r i t y b i t d a t a b i t s ( 5 - 8 ) d 0 d 1 d 2 d 3 d 4 d 5 d 6 d 7 s t a r t b i t r x f i r s t b y t e t h a t r e a c he s t h e t r i g ge r l e v e l - r x r d y - i o r t 2 5 d t 2 6 d x 5 52 - r x - 3 a c t i v e d a t a r e a d y a c t i v e
34 st16c552/552a rev. 3.40 transmit timing s t o p b i t pa r i t y b i t d a t a b i t s ( 5 - 8 ) d 0 d 1 d 2 d 3 d 4 d 5 d 6 d 7 5 d a t a b i t s 6 d a t a b i t s 7 d a t a b i t s s t a r t b i t t x n ex t d a t a s t a r t b i t i n t t 2 2 d t 2 4 d 1 6 b a u d r a t e c l o c k x 5 52 - t x - 1 - i o w t 2 3 d a c t i v e a c t i v e t x r e a d y a c t i v e
35 st16c552/552a rev. 3.40 transmit ready timing in none fifo mode s t o p b i t p a r i t y b i t d a t a b i t s ( 5 - 8 ) d 0 d 1 d 2 d 3 d 4 d 5 d 6 d 7 s t a r t b i t t x n e x t d a t a s t a r t b i t - t x rd y t 28 d x 55 2 - t x - 2 - i o w t 27 d b y t e # 1 a c t i v e a c t i v e t r a n s m i tt e r r ea d y t r a n s m i tt e r n o t r e ad y d 0 - d 7
36 st16c552/552a rev. 3.40 transmit ready timing in fifo mode s t o p b i t p a r i t y b i t d a t a b i t s ( 5 - 8 ) d 0 d 1 d 2 d 3 d 4 d 5 d 6 d 7 5 d a t a b i t s 6 d a t a b i t s 7 d a t a b i t s s t a r t b i t t x - i o w d 0 - d 7 - t x rd y b y t e # 16 t 28 d t 27 d x 55 2 - t x - 3 f i f o f u l l a c t i v e
37 st16c552/552a rev. 3.40 printer port timing (552 only) - a c k i n t p - i o r i n t e r ru p t l a t ch e d m o d e se l e c t n o r m a l m o d e i n t s e l t 4 0 d t 4 2 d t 4 3 d t 3 9 w v a l i d d a t a t 4 0 s t 4 1 h p d 0 - p d 7 x 55 2 - p r - 1
38 st16c552/552a rev. 3.40 printer port timing (552a only) - a c k i n t p - i o r i n t e r ru p t l a t ch e d m o d e se l e c t n o r m a l m o d e i n t s e l t 4 0 d t 4 2 d t 4 3 d t 3 9 w v a l i d d a t a t 4 0 s t 4 1 h p d 0 - p d 7 x 55 2 - p r - 2
39 st16c552/552a rev. 3.40 notice exar corporation reserves the right to make changes to the products contained in this publication in order toimprove design, performance or reliability. exar corporation assumes no responsibility for the use of any circuits described herein, conveys no license under any patent or other right, and makes no representation that the circuits are free of patent infringement. charts and schedules contained here in are only for illustration purposes and may vary depending upon a user?s specific application. while the information in this publication has been carefully checked; no responsibility, however, is assumed for inaccuracies. exar corporation does not recommend the use of any of its products in life support applications where the failure of the product can reasonably be expected to cause failure of the life support system or to significantly affect its safety or effectiveness. products are not authorized for use in such applications unless exar corporation receives, in writing, assurances to its satisfaction that: (a) the risk of injury or damage has been minimized; (b) the user assumes all such risks; (c) potential liability of exar corporation is adequately protected under the circumstances. copyright 2003 exar corporation datasheet september 2003 send your uart technical inquiry with technical details to hotline: uarttechsupport@exar.com reproduction, in part or whole, without prior written consent of exar corporation is prohibited. explanation of data sheet revisions: from to changes date 3.30 3.40 added revision history. added device status in ordering information. dec 2003 device revisions of "f" and newer have 5v tolerant inputs except forxtal1 and printer port inputs. device revisions of "e" and older do not have 5v tolerant inputs.


▲Up To Search▲   

 
Price & Availability of ST16C552IJ68

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X